package com.zerone.pay.trade.service.impl;

import com.acooly.module.appservice.AppService;
import com.zerone.pay.trade.service.WithdrawServcie;
import com.zerone.pay.trade.service.order.WithdrawOrder;
import com.zerone.pay.trade.service.order.WithdrawReceiptOrder;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by fire on 2017/9/6.
 */
@Service
public class WithdrawServcieImpl implements WithdrawServcie {

  @Override
  @Transactional
  @AppService
  public String withdraw(WithdrawOrder withdrawOrder) {
    // 1.查询商户信息
    // 2.查询账户信息，检验余额
    // 3.冻结金额
    // 4.调用渠道接口进行提现
    // 存储流水
    return null;
  }

  @Transactional
  @AppService
  @Override
  public String withdrawReceipt(WithdrawReceiptOrder withdrawReceiptOrder) {
    return null;
  }
}
